package cn.sofwin.day0107;
import java.util.Scanner;

/**
 * switch语句
 */

public class Test01 {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入名次（阿拉伯数字）：");
        int rank = sc.nextInt();
        if(rank == 1){
            System.out.println("夏令营");
        }else if(rank == 2){
            System.out.println("笔记本");
        }else if(rank == 3){
            System.out.println("移动硬盘");
        }else {
            System.out.println("无");
        }
        System.out.println("-----------------");
        switch(rank){
            case 1:
                System.out.println("Summer Club");
                break;
            case 2:
                System.out.println("pc computer");
                break;
            case 3:
                System.out.println("move-disk");
                break;
            default:
                System.out.println("noting");
        }
    }
}
